package salary.calculation.common.enumerate;


import salary.calculation.common.BusinessExceptionAssert;

public enum ArgumentResponseEnum implements BusinessExceptionAssert {

    /**
     * 参数错误
     */
    VALID_ERROR(4001, "参数错误"),
    PHONE_ERROR(4002, "手机号格式错误"),
    PASSWORD_ERROR(4003, "密码格式错误"),
    ;

    ArgumentResponseEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String msg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
